@middleWidth: 300px;
@smallWidth: 216px;
@offsetWidth: 10px;

.charts-gauge {
  position: relative;
  .charts-gauge-position {
    overflow: hidden;
    .charts-gauge-align-content {
      position: relative;
      padding: 10px;
      box-sizing: content-box;
      .charts-gauge-axisLine {
        position: relative;
        height: 100%;
        .charts-gauge-axisTick {
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
          border-radius: 50%;
          background-color: white;
          border-color: #5a86ff #eef2ff #eef2ff #5a86ff;
          border-style: solid;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.5s ease-in;
        }
        .charts-gauge-splits-wrap {
          width: 100%;
          box-sizing: border-box;
          height: 100%;
          .charts-gauge-splits {
            position: relative;
            width: 100%;
            height: 100%;
            .gauge-split {
              display: flex;
              flex-direction: column;
              align-items: center;
              position: absolute;
              left: 0;
              right: 0;
              top: 2px;
              bottom: 0;
              font-size: 10px;
              .gauge-split-bg {
                width: 2px;
                height: 6px;
              }
            }
          }
        }
        .charts-gauge-pointer-wrap {
          display: flex;
          flex-direction: column;
          align-items: center;
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
          transition: all 0.5s ease-in;
          .charts-gauge-pointer-border {
            border: 2px solid #ffffff;
            margin-top: -4px;
            .charts-gauge-pointer {
              position: relative;
              width: 6px;
              border-top: 24px solid #5a86ff;
              border-left: 1px solid white;
              border-right: 1px solid white;
              border-bottom: 0px solid white;
            }
          }
        }
      }
    }
  }
  .charts-gauge-extra-label {
    position: absolute;
    bottom: 5px;
    left: @offsetWidth + 24px;
    right: @offsetWidth + 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 400;
    color: #8b98a9;
    line-height: 10px;
  }

  .charts-gauge-content {
    position: absolute;
    bottom: 4px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    .charts-gauge-content-title {
      font-weight: 500;
      color: #5a86ff;
    }
    .charts-gauge-content-desc {
      padding-top: 4px;
      font-size: 14px;
      font-weight: 400;
      color: #617185;
      line-height: 20px;
      display: flex;
      align-items: center;
      .desc-title {
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      img {
        cursor: pointer;
        width: 16px;
        height: 16px;
      }
    }
  }
}

.charts-gauge-middle {
  width: calc(@middleWidth + 2 * @offsetWidth);
  height: calc(@middleWidth / 2 + 2 * @offsetWidth);
  .charts-gauge-position {
    height: calc(@middleWidth / 2 + @offsetWidth);
    .charts-gauge-align-content {
      width: @middleWidth;
      height: @middleWidth;
      .charts-gauge-axisLine {
        .charts-gauge-axisTick {
          border-width: 20px;
        }
        .charts-gauge-splits-wrap {
          padding: 20px;
        }
      }
    }
  }
  .desc-title {
    max-width: 180px;
  }
  .charts-gauge-content {
    .charts-gauge-content-title {
      font-size: 42px;
      line-height: 42px;
    }
  }
}

.charts-gauge-small {
  width: calc(@smallWidth + 2 * @offsetWidth);
  height: calc(@smallWidth / 2 + 2 * @offsetWidth);
  .charts-gauge-position {
    height: calc(@smallWidth / 2 + @offsetWidth);
    .charts-gauge-align-content {
      width: @smallWidth;
      height: @smallWidth;
      .charts-gauge-axisLine {
        .charts-gauge-axisTick {
          border-width: 16px;
        }
        .charts-gauge-splits-wrap {
          padding: 16px;
        }
      }
    }
  }
  .desc-title {
    max-width: 120px;
  }
  .charts-gauge-content {
    .charts-gauge-content-title {
      font-size: 36px;
      line-height: 36px;
    }
  }

  .charts-gauge-desc-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 21px;
    span {
      font-size: 12px;
      color: #617185;
      line-height: 20px;
    }
  }
}
